//package com.ruoyi.framework.config;
//
//import io.swagger.v3.oas.models.parameters.Parameter;
//import org.springdoc.core.GroupedOpenApi;
//import org.springdoc.core.customizers.OperationCustomizer;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * spring doc配置
// *
// * @author ruoyi
// */
//@Configuration
//public class SpringDocConfig {
//
//	@Bean
//	public GroupedOpenApi tokenApi(OperationCustomizer operationCustomizer) {
//		return GroupedOpenApi.builder()
//				.group("default")
//				.pathsToMatch("/**")
//				.addOperationCustomizer(operationCustomizer)
//				.build();
//	}
//
//	@Bean
//	public OperationCustomizer operationCustomizer() {
//		return (operation, handlerMethod) -> operation.addParametersItem(
//				new Parameter()
//						.in("header")
//						.required(true)
//						.description("token 验证")
//						.name("sd-token"));
//	}
//}
